package ${packageName}.${moduleName}.service;

import com.rd.p2p.common.model.jpa.PageDataList;
import com.rd.p2p.common.model.jpa.QueryParam;
import com.rongdu.mlms.common.service.BaseService;
import  ${packageName}.${moduleName}.domain.${ClassName};

/**
 * ${functionName}Service
 * TODO
 * @author ${classAuthor}
 * @version 2.0
 * @since ${classDate}
 */
public interface ${ClassName}Service extends BaseService {

    /**
     * 添加${functionName}
     * 
     * @param ${className} ${functionName}实体
     */
    ${ClassName} add${ClassName}(${ClassName} ${className});

    /**
     * 查询${functionName}
     * 
     * @param id 主键ID
     * @return ${functionName}
     */
    ${ClassName} get${ClassName}ById(long id);

    /**
     * ${functionName}修改
     * @param ${className} ${functionName}实体
     */
    ${ClassName} ${className}Update(${ClassName} ${className});

    /**
     * ${functionName}删除
     * 
     * @param id 主键ID
     */
    void delete${ClassName}(long id);
    
    /**
     * ${functionName}分页
     * @param param 查询参数
     * @return 分页
     */
    PageDataList<${ClassName}> get${ClassName}PageList(QueryParam param);
	
}
